﻿//Created by Action Script Viewer - http://www.buraks.com/asv
package net.wooga.pets.views.world.machines {
    import flash.display.*;
    import flash.geom.*;
    import flash.text.*;
    import net.wooga.pets.utils.*;

    public class ReceptionMachineView extends AbstractMachineView {

        private var _petArrowClip:MovieClip;

        private static const PLACE_HOLDER_INSTANCE_NAME:String = "secretary_placeholder";

        public function ReceptionMachineView(_arg1:String, _arg2:MovieClip){
            super(_arg1, _arg2);
        }
        public function addSecretary(_arg1:MovieClip):void{
            MovieClip(this._asset.getChildByName(PLACE_HOLDER_INSTANCE_NAME)).addChild(_arg1);
        }
        public function addMorePetsArrow(_arg1:String, _arg2:String, _arg3:Point):void{
            if (this._petArrowClip){
                return;
            };
            this._petArrowClip = AssetsLibrary.getMovieClip(_arg1);
            this._petArrowClip.x = _arg3.x;
            this._petArrowClip.y = _arg3.y;
            this._petArrowClip.buttonMode = true;
            this._petArrowClip.mouseChildren = false;
            var _local4:TextField = new TextField();
            _local4.name = "morePetLabel";
            _local4.x = 83;
            _local4.y = 40;
            _local4.width = this._petArrowClip.width;
            _local4.height = 78;
            TextFormats.getFormattedTextField(TextFormats.MORE_PETS_LABEL, _local4, _arg2);
            this._petArrowClip.ani.addChild(_local4);
            this._petArrowClip.cacheAsBitmap = true;
            _asset.addChild(this._petArrowClip);
        }
        public function removeMorePetsArrow():void{
            if (this._petArrowClip){
                _asset.removeChild(this._petArrowClip);
                this._petArrowClip = null;
            };
        }

    }
}//package net.wooga.pets.views.world.machines 
